import java.util.Scanner;

// Point 类表示 LED 灯的位置和状态
class Point {
    private int x; // 横坐标
    private int y; // 纵坐标
    private boolean isOn; // 开关状态

    // 有参构造方法
    public Point(int x, int y, boolean isOn) {
        this.x = x;
        this.y = y;
        this.isOn = isOn;
    }

    // 获取开关状态
    public String getStatus() {
        return isOn ? "on" : "off";
    }
}

// Main 类
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 输入坐标和开关状态
        int x = scanner.nextInt();
        int y = scanner.nextInt();
        boolean isOn = scanner.nextBoolean();

        // 创建 Point 对象
        Point led = new Point(x, y, isOn);

        // 输出 LED 灯的状态
        System.out.println(led.getStatus());

        scanner.close();
    }
}